﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Linq.Expressions;
//using System.Text;
//using System.Threading.Tasks;

//namespace Sop.LinqProvider
//{
//    internal class ExpressionTreeModifier<TKey, TValue> : ExpressionVisitor
//    {
//        private IQueryable<KeyValuePair<TKey, TValue>> queryableData;

//        internal ExpressionTreeModifier(IQueryable<KeyValuePair<TKey, TValue>> entities)
//        {
//            this.queryableData = entities;
//        }

//        protected override Expression VisitConstant(ConstantExpression c)
//        {
//            // Replace the constant QueryableTerraServerData arg with the queryable Place collection. 
//            if (c.Type == typeof(QueryableStore<TKey, TValue>))
//                return Expression.Constant(this.queryableData);
//            else
//                return c;
//        }
//    }
//}
